﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.MefExtensions;
using System.Windows;
using System.ComponentModel.Composition.Hosting;

namespace QLab
{
	public class Bootstrapper : MefBootstrapper
	{
		protected override System.Windows.DependencyObject CreateShell()
		{
			return this.Container.GetExportedValue<MainWindow>();
		}

		protected override void InitializeShell()
		{
			Application.Current.MainWindow = Shell as Window;
			Application.Current.MainWindow.Show();
		}

		protected override void ConfigureAggregateCatalog()
		{
			base.ConfigureAggregateCatalog();

			this.AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof(MainWindow).Assembly));
		}
	}
}
